import request from "@/utils/request.js";
// import { HOST } from "../../global";

// 查询考试列表
export function getExaminationListApi(params) {
  return request({
    url: "/admin/exam/list",
    method: "POST",
    params,
  });
}

// 删除考试
export function delTextPagerApi(params) {
  return request({
    url: "/admin/exam/remove",
    method: "POST",
    params,
  });
}

// 修改考试
export function editExaminationApi(params) {
  return request({
    url: "/admin/exam/exit",
    method: "POST",
    params,
  });
}

// 添加考试
export function addExaminationApi(params) {
  return request({
    url: "/admin/exam/add",
    method: "POST",
    params,
  });
}

// 考试详情/admin/exam/select
export function examinationDetatilApi(params) {
  return request({
    url: "/admin/exam/select",
    method: "POST",
    params,
  });
}

// 考场列表
export function getRoomList(params) {
  return request({
    url: "/admin/room/list",
    method: "POST",
    params,
  });
}
// 签到表列表查询
export function getSignInFormApi(params) {
  return request({
    url: "/admin/signForm/list",
    method: "POST",
    params,
  });
}

//签到表打印接口
export function printSignInFormApi(query) {
  return request({
    url: `/admin/signForm/printf`,
    method: "POST",
    params: query,
  });
}
